﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.Diagnostics;

namespace DomainModel
{
    [Table(Name = "main.Orders")]
    public partial class Order
    {
        #region string Address

        private string _address;
        [DebuggerNonUserCode]
        [Column(Storage = "_address", Name = "Address", DbType = "nvarchar(256)", CanBeNull = false)]
        public string Address
        {
            get
            {
                return _address;
            }
            set
            {
                if (value != _address)
                {
                    _address = value;
                }
            }
        }

        #endregion

        #region System.DateTime CreateTime

        private System.DateTime _createTime;
        [DebuggerNonUserCode]
        [Column(Storage = "_createTime", Name = "CreateTime", DbType = "datetime", CanBeNull = false)]
        public System.DateTime CreateTime
        {
            get
            {
                return _createTime;
            }
            set
            {
                if (value != _createTime)
                {
                    _createTime = value;
                }
            }
        }

        #endregion

        #region string CustomerName

        private string _customerName;
        [DebuggerNonUserCode]
        [Column(Storage = "_customerName", Name = "CustomerName", DbType = "nvarchar(64)", CanBeNull = false)]
        public string CustomerName
        {
            get
            {
                return _customerName;
            }
            set
            {
                if (value != _customerName)
                {
                    _customerName = value;
                }
            }
        }

        #endregion

        #region string Email

        private string _mail;
        [DebuggerNonUserCode]
        [Column(Storage = "_mail", Name = "Mail", DbType = "nvarchar(128)", CanBeNull = false)]
        public string Email
        {
            get
            {
                return _mail;
            }
            set
            {
                if (value != _mail)
                {
                    _mail = value;
                }
            }
        }

        #endregion

        #region int? ID

        private int? _id;
        [DebuggerNonUserCode]
        [Column(Storage = "_id", Name = "ID", DbType = "INTEGER", IsPrimaryKey = true, IsDbGenerated = true)]
        public int? ID
        {
            get
            {
                return _id;
            }
            set
            {
                if (value != _id)
                {
                    _id = value;
                }
            }
        }

        #endregion

        #region string Phone

        private string _phone;
        [DebuggerNonUserCode]
        [Column(Storage = "_phone", Name = "Phone", DbType = "nvarchar(16)", CanBeNull = false)]
        public string Phone
        {
            get
            {
                return _phone;
            }
            set
            {
                if (value != _phone)
                {
                    _phone = value;
                }
            }
        }

        #endregion

        #region string PostCode

        private string _postCode;
        [DebuggerNonUserCode]
        [Column(Storage = "_postCode", Name = "PostCode", DbType = "nvarchar(16)", CanBeNull = false)]
        public string PostCode
        {
            get
            {
                return _postCode;
            }
            set
            {
                if (value != _postCode)
                {
                    _postCode = value;
                }
            }
        }

        #endregion

        #region string Remark

        private string _remark;
        [DebuggerNonUserCode]
        [Column(Storage = "_remark", Name = "Remark", DbType = "nvarchar(512)", CanBeNull = false)]
        public string Remark
        {
            get
            {
                return _remark;
            }
            set
            {
                if (value != _remark)
                {
                    _remark = value;
                }
            }
        }

        #endregion

    }
}
